package com.iss.airsys.service;

import com.iss.airsys.dao.FixAssetsDao;
import com.iss.airsys.entity.FixAssets;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FixAssetsService {
    @Autowired
    FixAssetsDao dao;

    public Integer insertfixAssets(FixAssets fixAssets){
        return dao.insertfixAssets(fixAssets);
    }
    public List<FixAssets> selectAllfixAssets(){
        return dao.selectAllfixAssets();
    }
    public Integer deletefixAssets(Integer[] assets_id_Array){
        return  dao.deletefixAssets(assets_id_Array);
    }
    public Integer updatefixAssets(FixAssets fixAssets){
        return dao.updatefixAssets(fixAssets);
    }
    public FixAssets selectfixAssetsById(Integer assets_id) {
        return dao.selectfixAssetsById(assets_id);
    }

  public Integer updateInfo(@Param("surface") String surface,@Param("info") String info,@Param("id") Integer id){
        return dao.updateInfo(surface,info,id);
  }





}
